package com.en.effectiveJava.chapter2.singleton3;

/**
 * 用单元素的枚举类来实现单例模式
 * Create by EN
 * On 29/05/18 12:00 PM
*/
public enum EnumSingleton {

    INTSTANCE;

    public void say() {
        System.out.printf("I'm EnumSingleton, I'm built!\n");
    }

}
